package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.StrategyCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by 甘静斌 on 2020-08-07 13:38
 */
public interface IStrategyCommentService {

    /**
     *
     * 添加
     * @param strategyComment
     */
    void save(StrategyComment strategyComment);

    /**
     * 更新
     * @param strategyComment
     */
    void update(StrategyComment strategyComment);
    

    /**
     * 查单个
     * @param id
     * @return
     */
    StrategyComment get(String id);

    /**
     *
     * 查全部
     * @return
     */
    List<StrategyComment> list();

    /**
     * 目的地分页和高级查询
     * @param qo
     * @return
     */
    Page<StrategyComment> query(StrategyCommentQuery qo);


    void commentThumb(String cid, UserInfo userInfo);


}
